package com.com02适配器模式.test2;

public class V220ToV12 extends V12{
    private V220 v220;

    public V220ToV12(int v) {
        this.v220 = new V220(v);
    }

    @Override
    public int getV12() {
        int v = v220.getV();
        v = v - 208;
        System.out.println("变压器做了减压，现在的电压为：" + v);
        return v;
    }
}
